package com.titan.demo.ClusterFailback;

import com.titan.demo.common.interfaces.IDemoService;
import com.titan.demo.common.utils.ConsumerUtil;

public class Consumer {

	public static void main(String[] args) {
		long time = System.currentTimeMillis();
		IDemoService service = ConsumerUtil.get(IDemoService.class, "1.0.0");
		System.out.println("get service time["+(System.currentTimeMillis()-time)+"]");
		for (int i = 0; i < 100; i++) {
			time = System.currentTimeMillis();
			String info = service.sayHello("zzz["+i+"]");
			System.out.println(info + "["+ (System.currentTimeMillis() - time) +"]");;
		}
		
//		ConsumerUtil.output(service);
	}

}
